#include "sniptools.h"

#include <QApplication>
#include <QDesktopWidget>
#include <QQuickWindow>
#include <QScreen>
#include <QWindow>

SnipTools::SnipTools()
{

}

/**
* @brief 方法存在问题，需要修改
*/
QImage SnipTools::grabFullScreen(QQuickWindow* window)
{
//    auto fullScreen = window->screen()->grabWindow(QApplication::desktop()->winId());
    auto fullScreen = window->grabWindow();

    return fullScreen;
}
